package com.aspose.cells.b.a.d;

import java.io.IOException;
import java.io.OutputStream;

class zg extends OutputStream {
   zm a;

   public zg(zm var1) throws Exception {
      this.a = var1;
      this.a.b(0L);
   }

   public void write(int b) throws IOException {
      try {
         this.a.a((byte)b);
      } catch (Exception var3) {
         throw new IOException(var3.getMessage());
      }
   }

   public void write(byte[] b, int off, int len) throws IOException {
      try {
         this.a.b(b, off, len);
      } catch (Exception var5) {
         throw new IOException(var5.getMessage());
      }
   }

   public void close() throws IOException {
      try {
         this.a.a();
      } catch (Exception var2) {
         throw new IOException(var2.getMessage());
      }
   }
}
